package com.boomsecret.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

/**
 * Created by Administrator on 2017/7/18.
 */

public class CustomBroadcastReceiver extends BroadcastReceiver {

    /**
     * 不可以有耗时操作，也不要开线程
     * @param context
     * @param intent 可以携带参数
     */
    @Override
    public void onReceive(Context context, Intent intent) {
        Toast.makeText(context, "自定义广播", Toast.LENGTH_SHORT).show();
    }
}
